package com.icss.OA.service.impl;

import com.icss.OA.dao.DeptMapper;
import com.icss.OA.pojo.Dept;
import com.icss.OA.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    DeptMapper mapper;

    @Override
    public List<Dept> findAll() {

        return mapper.selectAll();
    }
}
